package com.ruoyi.transaction.service;

import java.util.List;
import com.ruoyi.common.entity.TransactionEntity.ShopOrderItem;

/**
 * 订单商品Service接口
 * 
 * @author swy
 * @date 2025-08-07
 */
public interface IShopOrderItemService 
{
    /**
     * 查询订单商品
     * 
     * @param id 订单商品主键
     * @return 订单商品
     */
    public ShopOrderItem selectShopOrderItemById(Integer id);

    /**
     * 查询订单商品列表
     * 
     * @param shopOrderItem 订单商品
     * @return 订单商品集合
     */
    public List<ShopOrderItem> selectShopOrderItemList(ShopOrderItem shopOrderItem);

    /**
     * 新增订单商品
     * 
     * @param shopOrderItem 订单商品
     * @return 结果
     */
    public int insertShopOrderItem(ShopOrderItem shopOrderItem);

    /**
     * 修改订单商品
     * 
     * @param shopOrderItem 订单商品
     * @return 结果
     */
    public int updateShopOrderItem(ShopOrderItem shopOrderItem);

    /**
     * 批量删除订单商品
     * 
     * @param ids 需要删除的订单商品主键集合
     * @return 结果
     */
    public int deleteShopOrderItemByIds(Integer[] ids);

    /**
     * 删除订单商品信息
     * 
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteShopOrderItemById(Integer id);

    int insertShopOrderItemBatch(List<ShopOrderItem> items);
}
